#!/bin/bash
echo  'delete file ./logs/systemOut.log'
rm -f ./logs/systemOut.log

fileName=$(find . -name eomt*.jar)

if [ -f "fileName" ]
then
  echo start eomt application $fileName
  # 将日志文件输到
  nohup java -server -Xms1024m -Xmx2048m -jar $fileName > ./logs/systemOut.log &
else
  echo eomt*.jar is not exists.

fi